<?php
$this->widget('ext.pagetitle.PageTitle',array(
	'parts'=>array(
		Yii::t('frontend','Contact Us'),
		CHtml::encode(Yii::app()->name),
	),
));

$this->breadcrumbs=array(
	Yii::t('frontend','Contact Us'),
);
?>

<div class="site-contact">

	<h1><?php echo Yii::t('frontend','Contact Us'); ?></h1>

	<fieldset>

		<?php $form=$this->beginWidget('BootstrapActiveForm', array(
			'id'=>'contact-form',
			'enableClientValidation'=>true,
			'clientOptions'=>array('validateOnSubmit'=>true),
		)); ?>

			<?php echo $form->textFieldBlock($model,'name',array('class'=>'xlarge','maxlength'=>255)); ?>

			<?php echo $form->textFieldBlock($model,'email',array('class'=>'xlarge','maxlength'=>255)); ?>

			<?php echo $form->textFieldBlock($model,'subject',array('class'=>'xlarge','maxlength'=>128)); ?>

			<?php echo $form->textAreaBlock($model,'body',array('class'=>'xxlarge','rows'=>6)); ?>

			<?php if(CCaptcha::checkRequirements()): ?>
				<div class="clearfix captcha">
					<?php echo $form->labelEx($model,'verifyCode'); ?>
					<div class="input">
						<div class="widget"><?php $this->widget('CCaptcha'); ?></div>
						<?php echo $form->textField($model,'verifyCode',array('class'=>'xlarge')); ?>
						<?php echo $form->error($model,'verifyCode'); ?>
						<span class="help-block">
							<?php echo Yii::t('frontend','Please enter the letters as they are shown in the image above.'); ?><br />
							<?php echo Yii::t('frontend','Letters are not case-sensitive.'); ?>
						</span>
					</div>
				</div>
			<?php endif; ?>

			<div class="actions">
				<?php echo CHtml::submitButton(Yii::t('frontend', 'SUBMIT'),array('class'=>'btn primary')); ?>
				<?php echo CHtml::resetButton(Yii::t('frontend', 'RESET'),array('class'=>'btn')); ?>
				<?php echo CHtml::link(Yii::t('frontend', 'CANCEL'),Yii::app()->homeUrl,array('class'=>'btn')); ?>
			</div>

		<?php $this->endWidget(); ?>

	</fieldset>

</div>